package com.coscon.model;

import java.util.Date;

public class User {
    private Integer id;

    private String username;

    private String password;

    private String mobile;

    private String email;

    private Date createTime;

    private Date updateTime;

    private Integer status;

    private String fullName;//full_name

    private String officeTelephone;//office_telephone

    private String physicalOfficeName;//physical_office_name

    private String domainAccountName;//domain_account_name

    private String baseDn;//base_dn

    private Integer loginTimes;//login_times

    private Date lastLoginTime;//last_login_time

    public Integer getLoginTimes() {
        return loginTimes;
    }

    public void setLoginTimes(Integer loginTimes) {
        this.loginTimes = loginTimes;
    }

    public Date getLastLoginTime() {
        return (Date)lastLoginTime.clone();
    }

    public void setLastLoginTime(Date lastLoginTime) {
        if(lastLoginTime!=null){
            this.lastLoginTime = (Date) lastLoginTime.clone();
        }
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getOfficeTelephone() {
        return officeTelephone;
    }

    public void setOfficeTelephone(String officeTelephone) {
        this.officeTelephone = officeTelephone;
    }

    public String getPhysicalOfficeName() {
        return physicalOfficeName;
    }

    public void setPhysicalOfficeName(String physicalOfficeName) {
        this.physicalOfficeName = physicalOfficeName;
    }

    public String getDomainAccountName() {
        return domainAccountName;
    }

    public void setDomainAccountName(String domainAccountName) {
        this.domainAccountName = domainAccountName;
    }

    public String getBaseDn() {
        return baseDn;
    }

    public void setBaseDn(String baseDn) {
        this.baseDn = baseDn;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Date getCreateTime() {
        return (Date) createTime.clone();
    }

    public void setCreateTime(Date createTime) {
        this.createTime = (Date)createTime.clone();
    }

    public Date getUpdateTime() {
        return (Date)updateTime.clone();
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = (Date) updateTime.clone();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", mobile='" + mobile + '\'' +
                ", email='" + email + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", status=" + status +
                ", fullName='" + fullName + '\'' +
                ", officeTelephone='" + officeTelephone + '\'' +
                ", physicalOfficeName='" + physicalOfficeName + '\'' +
                ", domainAccountName='" + domainAccountName + '\'' +
                ", baseDn='" + baseDn + '\'' +
                ", loginTimes=" + loginTimes +
                ", lastLoginTime=" + lastLoginTime +
                '}';
    }
}